﻿@model Eqwww.Domain.Models.SystemManage.DatabaseLogModel
@inject Eqwww.App.Identity.UserApp UserApp

@{
    ViewData["Title"] = "Details";
    Layout = "~/Views/Shared/_ManageFormLayout.cshtml";

    var currentUser = UserApp.GetUserAsync(User).Result;
}

<div class="mdui-container">
    <div class="mdui-row">
        <div class="mdui-col-xs-12 mdui-col-md-6">

            <div class="mdui-typo-title mdui-p-t-4">基本信息</div>
            <div class="mdui-list">
                <div class="mdui-list-item mdui-ripple">
                    <div class="mdui-list-item-content">
                        <div class="mdui-list-item-text">
                            @Html.DisplayNameFor(model => model.OperatorId)
                        </div>
                        <div class="mdui-list-item-title">
                            @Html.DisplayFor(model => model.Operator.RealName)
                        </div>
                    </div>
                </div>
                <div class="mdui-list-item mdui-ripple">
                    <div class="mdui-list-item-content">
                        <div class="mdui-list-item-text">
                            @Html.DisplayNameFor(model => model.CreateTime)
                        </div>
                        <div class="mdui-list-item-title">
                            @Html.DisplayFor(model => model.CreateTime)
                        </div>
                    </div>
                </div>
                <div class="mdui-list-item mdui-ripple">
                    <div class="mdui-list-item-content">
                        <div class="mdui-list-item-text">
                            @Html.DisplayNameFor(model => model.ObjectId)
                        </div>
                        <div class="mdui-list-item-title">
                            @Html.DisplayFor(model => model.ObjectId)
                        </div>
                    </div>
                </div>
                <div class="mdui-list-item mdui-ripple">
                    <div class="mdui-list-item-content">
                        <div class="mdui-list-item-text">
                            @Html.DisplayNameFor(model => model.ObjectType)
                        </div>
                        <div class="mdui-list-item-title">
                            @Html.DisplayFor(model => model.ObjectType)
                        </div>
                    </div>
                </div>
                <div class="mdui-list-item mdui-ripple">
                    <div class="mdui-list-item-content">
                        <div class="mdui-list-item-text">
                            @Html.DisplayNameFor(model => model.DbLogOperationType)
                        </div>
                        <div class="mdui-list-item-title">
                            @Html.DisplayFor(model => model.DbLogOperationType)
                        </div>
                    </div>
                </div>
                <div class="mdui-list-item mdui-ripple">
                    <div class="mdui-list-item-content">
                        <div class="mdui-list-item-text">
                            @Html.DisplayNameFor(model => model.Information)
                        </div>
                        <div class="mdui-list-item-title">
                            @Html.DisplayFor(model => model.Information)
                        </div>
                    </div>
                </div>
                <div class="mdui-list-item mdui-ripple">
                    <div class="mdui-list-item-content">
                        <div class="mdui-list-item-text">
                            @Html.DisplayNameFor(model => model.JsonData)
                        </div>
                        <div class="mdui-list-item-title">
                            @if (UserApp.IsUserInSuper(currentUser.Id))
                            {

                                @Html.DisplayFor(model => model.JsonData)
                            }
                            else
                            {
                                <span>您未被授权查看本内容</span>
                            }
                        </div>
                    </div>
                </div>
                


            </div>
            <div class="mdui-divider"></div>

           
        </div>

        
    </div>
</div>

